package com.lamb.script.core.utils;

import java.io.OutputStream;
import java.io.PrintStream;

/**
 * 不关闭处理printStream.
 *
 * @author lamb
 */
public class NoClosePrintStream extends PrintStream {

    public NoClosePrintStream(OutputStream out) {
        super(out, true);
    }

    @Override
    public void close() {
        this.flush();
    }
}
